package springboot.configuration;

import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import studio.raptor.ddal.jdbc.RaptorDataSource;

/**
 * 数据源配置类
 *
 * @author Charley
 * @since 1.0
 */
@Configuration
public class DataSourceConfig {

  @Bean
  public DataSource dataSource() {
    H2Starter.initialize();
    return new RaptorDataSource("vdb", "mysql");
  }
}
